<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8"></meta>
    <#include "../include/common.html">
        <link rel="stylesheet" href="${absolutePath}/resource/css/admin.blog.editor.settings.css"/>
        <title>编辑器设置</title>
        </head>
<body>
<#include "top.html">
    <div class="main">
        <#include "left.html">
            <div class="main-right">
                <div class="navigation"><span>博客管理</span>&nbsp;&gt;&nbsp;<span>编辑器设置</span></div>
                <form id="post-form">
                    <div class="editors">
                        <#list editors as item>
                            <div class="item">
                                <label><input type="radio" name="editorType" value="${item.type}"
                                    <#if item.type==editorType>checked</#if>
                                    >${item.desc}</label>
                                <div>
                                    <img src="${absolutePath}/resource/images/editor${item.type}.png"/>
                                </div>
                            </div>
                        </#list>
                    </div>
                </form>
                <a href="javascript:void(0)" id="post-btn" class="btn">&nbsp;&nbsp;保存设置&nbsp;&nbsp;</a>
            </div>
    </div>

    <script type="text/javascript">
        $(function () {
            $("#post-btn").click(function () {
                saveSettings();
            });
        });

        function saveSettings() {
            ulewo.ajaxRequest({
                url: "blog_editor_settings_save.action", data: $("#post-form").serialize(), fun: function (res) {
                    ulewo.tipMsg({
                        type: "success", content: "保存成功！"
                    });
                }
            });
        }
    </script>
</body>
</html>
